import type { App } from 'vue'
import Dialog from './Dialog/index.vue'
import FilterSearch from './FilterSearch/index.vue'
import Pagination from './Pagination/index.vue'
import SvgIcon from './SvgIcon/index.vue'
import CommonTable from './CommonTable/index.vue'
import CommonForm from './CommonForm/index.vue'
import CommonEcharts from './CommonEcharts/index.vue'

export function setupGlobalCom(app: App<Element>) {
  app.component(SvgIcon.name, SvgIcon)
  app.component(Dialog.name, Dialog)
  app.component(FilterSearch.name, FilterSearch)
  app.component(Pagination.name, Pagination)
  app.component(CommonTable.name, CommonTable)
  app.component('CommonForm', CommonForm)
  app.component('CommonEcharts', CommonEcharts)
}
